package com.java.action;

import java.util.ArrayList;
import java.util.Set;
import java.util.StringTokenizer;

import com.java.service.IDeptService;
import com.opensymphony.xwork2.ActionSupport;

import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;

public class DeleteDeptAction extends ActionSupport {
	
	  private IDeptService deptService;
      private Integer[] deptid;
	  
	    public String execute(){
	    		//System.out.println("DeleteDeptAction");
	    		for(int i = 0;i<deptid.length;i++){
	    			deptService.deleteDept(deptid[i]);
	    			//System.out.println("deptService+++++");
		    	}
	    	
	    	return "success";
	    }
	    	
		
		public Integer[] getDeptid() {
			return deptid;
		}

		public void setDeptid(Integer[] deptid) {
			this.deptid = deptid;
		}

		public IDeptService getDeptService() {
			return deptService;
		}

		public void setDeptService(IDeptService deptService) {
			this.deptService = deptService;
		}
		
	
}
